package com.java.simple.designmode.simplefactory;

/**
 * @author zhoujunlin
 * @date 2023年04月13日 11:46
 * @desc 披萨商店
 */
public class PizzaStore {


    public void orderPizza(String type) {
        Pizza pizza = SimplePizzaFactory.createPizza(type);
        pizza.bake();
        pizza.box();
        pizza.cut();
        pizza.prepare();
    }

    public static void main(String[] args) {
        new PizzaStore().orderPizza("Cheese");
    }

}
